package com.ewzj.bigdata.mvp.contract

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.ewzj.bigdata.mvp.model.reqbean.ReqAllSearch
import com.ewzj.bigdata.mvp.model.reqbean.ReqCityBean
import com.ewzj.bigdata.mvp.model.reqbean.ReqSearchCityBean
import com.ewzj.bigdata.mvp.model.reqbean.Reqpagebean
import com.ewzj.bigdata.mvp.model.rspbean.*
import com.ewzj.bigdata.mvp.ui.adapter.*
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
interface SearchActivityContract {
    interface View : IView{
        fun initAdapter(adapter:HotkeyAdapter)
        fun inittypeAdapter(adapter:TypeAdapter)
        fun switchAdapter(adapter: BaseQuickAdapter<Any,BaseViewHolder>,keyword:String)
        fun setSearchetString(keyword:String)
    }

    interface Model: IModel {
        fun searchHourse(reqAllSearch: ReqAllSearch):Observable<BaseData<BaseListData<HomeBean>>>
    }
}